package com.huobaibai.web;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.huobaibai.domain.Message;

@Controller
public class LoginController {

	
	@RequestMapping("/login")
	public String Login (){
		return "login";
	}
	
	@RequestMapping("/index")
	public String main (Model model){
		Message msg=new Message("标题","内容","额外信息只对管理员显示");
		model.addAttribute("msg",msg);
		return "main";
	}
	
	
}
